package com.autonavi.collapse.task.model;

public class ConfigValue {

    private Object value;
    private Class<?> type = String.class;

    public ConfigValue(){

    }

    public ConfigValue(Object value){
        this.value = value;
        this.type = value.getClass();
    }

    public ConfigValue(Object value, Class<?> type){
        this.value = value;
        this.type = type;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "ConfigValue{" +
                "value=" + value +
                ", type=" + type +
                '}';
    }
}
